package com.lotter.api.service;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lotter.context.CaipiaoKongContent;
import com.lotter.dao.HourseNewsMapper;
import com.lotter.dao.HousenoteMapper;


@Service
public class TouristService {
	
	
	@Autowired
	private HourseNewsMapper hourseNewsMapper;
	
	@Autowired
	private HousenoteMapper housenoteMapper ;
	
	//房间详情
	public void houserDetails(Map<String,Object> result,Long uid,Long hid) 
			throws Exception{
		//最新新闻
		int number = housenoteMapper.HousenoteForHourserId(hid);
		result.put("notenum", number);
		result.put("data", CaipiaoKongContent.findCaipiaoData());
	}

}
